﻿' LibWowAPI
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Imports System.Collections.ObjectModel

Namespace roncliProductions.LibWowAPI.Character

    ''' <summary>
    ''' A class containing information about a character's profession.
    ''' </summary>
    ''' <remarks></remarks>
    Public Class Profession

        ''' <summary>
        ''' The ID number of the profession.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property ID As Integer

        ''' <summary>
        ''' The name of the profession.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Name As String

        ''' <summary>
        ''' A path leading to the profession's icon on the server.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Icon As String

        ''' <summary>
        ''' The current number of skill points the character has in this profession.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Rank As Integer

        ''' <summary>
        ''' The maximum number of skill points the character can get in this profession.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Max As Integer

        Private colRecipes As Collection(Of Integer)
        ''' <summary>
        ''' A list of spell IDs representing the recipes the character knows for this profession.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public ReadOnly Property Recipes As Collection(Of Integer)
            Get
                Return colRecipes
            End Get
        End Property

        Protected Friend Sub New(intID As Integer, strName As String, strIcon As String, intRank As Integer, intMax As Integer, intRecipes As Collection(Of Integer))
            ID = intID
            Name = strName
            Icon = strIcon
            Rank = intRank
            Max = intMax
            colRecipes = intRecipes
        End Sub

    End Class

End Namespace
